from base import Base
from selenium.webdriver.common.by import By
from time import sleep
class ShoYePage(Base):
    nanzhang=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout[1]/android.widget.RelativeLayout/android.widget.FrameLayout[3]/android.widget.RelativeLayout/android.widget.HorizontalScrollView/android.widget.LinearLayout/android.widget.RelativeLayout[6]/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.TextView')
    dy = (By.XPATH, '//android.widget.TextView[@text="精选分类"]')
    def nanzhangyewu(self):
        self.find_ele(self.nanzhang).click()
        sleep(3)